package com.zhouzj.springbootsessiondemo.repo.redis;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

/**
 * @Author: zhouzhijun
 * @Date: 2021/5/11 13:36
 */

@Data
@RedisHash("user")
public class User {

    @Id
    private Long id;

    private String name;

    private String pswd;

}
